package com.xul.yygh.cmn.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author xul
 * @create 2021-07-11 20:02
 */

@FeignClient("service-cmn")
@Repository
public interface DictFeignClient {

    /**
     * 根据dictCode和value查询名称信息
     *
     * @param dictCode
     * @param value
     * @return
     */
    @GetMapping("admin/cmn/dict/getName/{dictCode}/{value}")
    public String getName(@PathVariable("dictCode") String dictCode,
                          @PathVariable("value") String value);

    /**
     * 根据value查询name(名称信息)
     *
     * @param value
     * @return
     */
    @GetMapping("admin/cmn/dict/getName/{value}")
    public String getName(@PathVariable("value") String value);
}
